package com.demo.denoapp;

import org.androidpn.demoapp.R;

import com.demo.client.ServiceManager;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class DemoActivity extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.main2);
		findViewById(R.id.btn_settings).setOnClickListener(this);
		
		ServiceManager serviceManager = new ServiceManager(this);
		serviceManager.setNotificationIconId(R.drawable.notification);
		serviceManager.startService();
	}

	@Override
	public void onClick(View v) { //启动设置界面
		ServiceManager.viewNotificationSettings(this);
	}
}
